package com.zhongge.comparerelevant.comparator;

import java.util.Comparator;

/**
 * @ClassName AgeComparator
 * @Description TODO 年龄比较器
 * @Author zhongge
 * @Version 1.0
 */
public class AgeComparator implements Comparator<Student> {
    @Override
    public int compare(Student o1, Student o2) {
        return o1.getAge() - o1.getAge();
    }
}
